WPF and Silverlight Edition Basic Library > ListBox > ListBox Features |
The following features are available with the C1ListBox control:
The ListBox for WPF and Silverlight controls support optical zoom functionality so users can manipulate the size of the items intuitively through pinch gestures. The zooming transformation is smooth and fluid so the performance of your application is not sacrificed.
You can customize the zoom using the ZoomMode and Zoom properties. The ZoomMode property gets or sets whether the zoom is enabled or disabled. The Zoom property gets the Zoom value applied to the control. The ZoomChanged event is triggered when the zoom value of the control is changed.
The ListBox controls support UI virtualization so they are blazing-fast while able to display thousands of items with virtually no loss of performance. You can determine how many items are rendered in each layout pass by setting the ViewportGap and ViewportPreviewGap properties. These properties can be adjusted depending on the scenario.
The ViewportGap property gets or sets a coefficient which will determine in each layout pass the size of the viewport. If zero is specified the size of the viewport will be equal to the scrollviewer viewport. If 0.5 is specified the size of the viewport will be enlarged to take up half screen more at both sides of the original viewport.
The ViewportPreviewGap property gets or sets a coefficient which will determine in each layout pass the size of the viewport to render items in preview mode.